/**
 * @ProjectName： naive-admin
 * @FileName： staticRoutes
 * @Description: 静态路由文件
 * @Author: ellwood
 * @date: 2023/12/28 - 8:24
 * @Version: V1.0.0
 */
import type { RouteRecordRaw } from 'vue-router'

const staticRoutes = [
  {
    path: '/login',
    component: () => import('~/pages/login/index.vue'),
    name: 'login',
    meta: { title: '登录' },
  },
  {
    path: '/error',
    name: 'error',
    component: () => import('~/pages/exception/error.vue'),
  },
  {
    path: '/redirect/:path(.*)',
    name: 'redirect',
    component: () => import('~/pages/redirect/index.vue'),
  },
  {
    path: '/:pathMatch(.*)',
    component: () => import('~/pages/exception/error.vue'),
  },
] as RouteRecordRaw[]

export default staticRoutes
